home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
win
/
ch23
/
23fig05.wrl
< prev
next >
Wrap
Text File
|
1996-09-23
|
703b
|
32 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright [1997] By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
children [
# Initial fog and background
Fog {
color 1.0 1.0 1.0
fogType "LINEAR"
visibilityRange 40.0
},
Background { skyColor 1.0 1.0 1.0 },
# Alternate fog background
DEF AltFog Fog {
color 1.0 0.0 0.0
fogType "LINEAR"
visibilityRange 30.0
},
DEF AltBack Background { skyColor 1.0 0.0 0.0 },
# Test world
Transform {
children [
Inline { url "fogworld.wrl" },
DEF TouchWorld TouchSensor { }
]
}
]
}
ROUTE TouchWorld.isActive TO AltFog.set_bind
ROUTE TouchWorld.isActive TO AltBack.set_bind